﻿using EntityFramework.Entity.Core;
using IRepositories.Core;
using Repositories.Test.Model;
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Data.Entity.ModelConfiguration.Conventions;
using System.Linq;
using System.Reflection;
using System.Text;

namespace Repositories.Test
{
    public class TestMDbContext : DbContext, IUnitOfWork
    {
        public TestMDbContext()
            : base("connectionString1")
        {
            //禁用加载实体的导航属性
            Configuration.LazyLoadingEnabled = false;
            Configuration.ProxyCreationEnabled = false;
        }
        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            base.OnModelCreating(modelBuilder);
        }
    }
}
